package com.ojoin.trade.common.web.dao;

import com.ojoin.trade.common.web.domain.Role;

public interface RoleDao extends BaseDao<Role> {

public Role getByName(Role role);
	
	public Role getByEnname(Role role);

	/**
	 * 维护角色与菜单权限关系
	 * @param role
	 * @return
	 */
	public int deleteRoleMenu(Role role);

	/**
	 * 维护角色与菜单按钮权限关系
	 * @param role
	 * @return
	 */
	public int deleteRoleButton(Role role);
	
	public int insertRoleMenu(Role role);
	
	public int insertRoleButton(Role role);
	
	/**
	 * 维护角色与公司部门关系
	 * @param role
	 * @return
	 */
	public int deleteRoleOffice(Role role);

	public int insertRoleOffice(Role role);
}
